<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta content="MSHTML 6.00.2900.2963" name="GENERATOR" />
        <title>
            <?php echo $_Q_title; ?>
        </title>
        <?php $html_class = new html(); ?>
        <?php $header_script = $html_class->explode_Q_HeaderScript(); ?>
        <?php echo $header_script; ?>
        <?php echo isset($script) ? $script : ""; ?>
        <?php echo isset($link_css) ? $link_css : ""; ?>
    </head>
    <body>
        <div id="main">
            <?php
            global $_Q_Url, $inc;
            $page_path = $_Q_Url->_page_template() . "index.php";
            if (isset($_REQUEST['template']) && $_REQUEST['template'] != "")
                $page_path = $_Q_Url->_page_template() . $_REQUEST['template'];
            include ($page_path);
//echo $content;
//            var_dump($_Q_Url);
            ?>
        </div>
    </body>
</html>